package com.bingxue.edu.teacher.model.resp;

import com.bingxue.edu.management.education.model.entity.ClassInfo;
import com.bingxue.edu.management.education.model.entity.Lesson;
import com.mybatisflex.annotation.RelationManyToOne;
import com.mybatisflex.annotation.TableRef;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author panbo
 * @since 2024/9/19
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Schema(description = "教师排课信息")
@TableRef(Lesson.class)
public class TeacherScheduleLessonResp extends Lesson {

    @Schema(description = "班级名称")
    private ClassInfo classInfo;

    @Schema(description = "校区名称")
    @RelationManyToOne(selfField = "campusId", targetTable = "base_org", targetField = "id", valueField = "name")
    private String campusName;

    @Schema(description = "教室名称")
    @RelationManyToOne(selfField = "classroomId", targetTable = "edu_classroom", targetField = "id", valueField = "name")
    private String classroomName;

    private Integer totalCount = 0;
    private Integer signInCount = 0;
}
